package com.anxin.registerManagement.bean.dto;

import com.anxin.registerManagement.bean.persist.PermissionGroup;
import com.anxin.registerManagement.bean.persist.Role;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @author 叶前呈
 * @date 2022/2/6 14:11
 */
@ApiModel("角色-数据交互类")
@Data
public class RoleDto extends Role {

    @TableField(exist = false)
    @ApiModelProperty("权限组集合，用于查询")
    private List<PermissionGroup> permissionGroupList;

    @TableField(exist = false)
    @ApiModelProperty("自定义角色名，用于添加修改")
    private String customRoleName;

    @TableField(exist = false)
    @ApiModelProperty("权限组id集合，用于添加修改")
    private List<Integer> permissionGroupIdList;

}
